package com.reggie.module.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.reggie.common.ResultResponseVo;
import com.reggie.module.entity.dto.dishDto.DishDto;
import com.reggie.module.entity.po.Category;
import com.reggie.module.entity.po.Dish;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;


/**
 * @Author 早睡蛋
 * @Date 2022/9/17 14:28:46
 * @Desc:
 */
public interface DishService extends IService<Dish> {


    ResultResponseVo upload(MultipartFile file, String dishImages, String dataUrl);


    ResultResponseVo saveDish(DishDto dishDto, HttpServletRequest request);

    ResultResponseVo selectByPage(int page, int pageSize, String name);

    ResultResponseVo getDishById(Long id, HttpServletRequest request);

    ResultResponseVo updateDish(DishDto dishDto, HttpServletRequest request);

    ResultResponseVo deleteDish(List<Long> ids);

    ResultResponseVo getListById(Long categoryId, Integer status);
}
